package com.ruoyi.cart.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 购物车对象 cart
 * 
 * @author ruoyi
 * @date 2022-07-06
 */
public class Cart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long cartid;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long userid;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String dishid;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String categoryid;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long quantity;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private BigDecimal listprice;

    public void setCartid(Long cartid) 
    {
        this.cartid = cartid;
    }

    public Long getCartid() 
    {
        return cartid;
    }
    public void setUserid(Long userid) 
    {
        this.userid = userid;
    }

    public Long getUserid() 
    {
        return userid;
    }
    public void setDishid(String dishid) 
    {
        this.dishid = dishid;
    }

    public String getDishid() 
    {
        return dishid;
    }
    public void setCategoryid(String categoryid) 
    {
        this.categoryid = categoryid;
    }

    public String getCategoryid() 
    {
        return categoryid;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }
    public void setListprice(BigDecimal listprice) 
    {
        this.listprice = listprice;
    }

    public BigDecimal getListprice() 
    {
        return listprice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cartid", getCartid())
            .append("userid", getUserid())
            .append("dishid", getDishid())
            .append("categoryid", getCategoryid())
            .append("quantity", getQuantity())
            .append("listprice", getListprice())
            .toString();
    }
}
